package com.neusoft.utils.contant;

import java.util.Map;

import com.neusoft.utils.map.HashMap;

/**
 * 常量
 *
 * @author von_change@163.com
 * @date 2016年4月19日 上午9:48:35
 * @since 1.0
 */
public class Constants {
	public static class WxLogin{
		  public static Map<String,String> signToOpenIdMap=new HashMap<String, String>();
		  public static Map<String,String> signToLastestUrl=new HashMap<String, String>();
	}
	public static class Sms{
		public static String CODE="sms_code";
	}
    public static class Regex{
 	   public static final String PASSWORD="^[\\@A-Za-z0-9]{6,22}$";
    }
	public final static String ENCODING = "UTF-8";
	// public final static String NGINXURL= "http://www.geexek.com:9099/files/";
	// public final static String NGINXURL2= "http://10.22.19.251/files/";
	// public final static String NGINXURL3=
	// "http://180.166.39.150:8088/files/";
	// public final static String LOCALPATH= "/home/nginx/nginx_data/";
	public final static String PHONE_REGEXP = "^1[34578]\\d{9}$";/* 手机号正则表达式 */
	public final static String PWD_REGEXP = "^[\\@A-Za-z0-9]{6,22}$";/*
																	 * 密码由数字和字母6,
																	 * 22
																	 */
	public static final float SMS_UNIT_PRICE = 1.0f;

	/**
	 * 状态值
	 */
	public final static int SUCCESS = 0;// 成功
	public final static int FAILURE = -1;// 失败

	/**
	 * id的合法性
	 */
	public static String POSITIVE_INTEGER = "[1-9][0-9]{0,}";

	// 报名项
	public static final int MOBILE_NO = 1;
	public static final int USER_NAME = 2;
	public static final int GENDER = 3;
	public static final int DATE_OF_BIRTH = 4;
	public static final int CLOTHING_SIZE = 5;
	public static final int SHOES_SIZE = 6;
	public static final int TYPE_OF_ID = 7;
	public static final int IDNUMBER = 8;
	public static final int EMAIL = 9;
	public static final int ADDRESS = 10;
	public static final int CONTACTS_NAME = 11;
	public static final int CONTACTS_PHONE = 12;
	public static final int CONTACTS_ADDRESS = 13;
	public static final int CONTACTS_RELATION = 14;// 紧急联系人关系
	public static final int BLOOD_TYPE = 15;// 血型
	public static final int CITY = 16;// 省份
	public static final int CERT = 17;// 一年内的完赛证书
	public static final int DEGREE = 18;// 学历
	public static final int HEALTH= 19;// 个人体检证明
	public static final int NOTE = 49;// 自定义备注
	public static final String NOTENAME = "备注";// 自定义备注
	public static final int TEAMNAME = 50;// 学历
	public static final int TEAMTYPE = 60;// 团队类型
	public static final int ALLPAY = 61;//是否一次性交齐团队报名费
	
	public static final String ISPAY = "isPay";
	public static final String REMARK = "remark";
	public static final Map<Integer, String> P_MAP = new HashMap<Integer, String>().set(1, "callPhone").set(2, "userName").set(3, "gender").set(4, "dateOfBirth").set(5, "clothingSize").set(6, "shoesSize").set(7, "typeOfID").set(8, "IDNumber").set(9, "email").set(10, "address").set(11, "contactsName").set(12, "contactsPhone").set(13, "contactsAddress").set(14, "contactsRelation").set(15, "bloodType").set(16, "city").set(17, "cert").set(18, "degree").set(19,"health").set(49,"note");
	public static final Map<Integer, String> T_MAP = new HashMap<Integer, String>().set(50, "teamName").set(51, "leader").set(52, "leaderPhone").set(53, "company").set(54, "slogan").set(60, "teamType").set(61, "allPay");
	public static final Map<Integer, String> EXTRAPAY_TYPE_MAP = new HashMap<Integer, String>().set(1, "餐饮").set(2, "住宿").set(3, "交通").set(4, "人员").set(5, "其他");

	// 1:手机号 2:姓名 3:性别 4:出生日期 5:衣服尺码 6:鞋子尺码 7:证件类型 8:证件号码
	// 9:联系邮箱 10:家庭住址 11:紧急联系人姓名 12:紧急联系人电话 13:紧急联系人地址 14:紧急联系人关系
	// 15:血型 16:省份 17：一年内的完赛证书 18：学历   19:体检证明  50：队伍名 51：队长姓名 52：队长手机 53：所属公司/院校
	// 54: 口号 60:teamType
	// ------
	// 1，输入框2，时间，3，文本域，4，单选框，5，多选框，6，下拉框 ,
	// 7.图片，8.日期，9.数字，10.手机，11.电子邮箱，12.网址 13.城市

	public static class Gender {
		public static final int MALE = 0;
		public static final int FEMALE = 1;
	}

	public static class RoadType {
		public static final int TEAM = 1;
		public static final int PERSON = 2;
	}
	public static class Road {
		public static class IsCharge {
			public static final int Yes = 1;
			public static final int No = -1;
		}
	}

	public static class Enroll {
		public static class IsPay {
			public static final int YES = 1;
			public static final int NO = -1;
		}

		public static class Excel {
			public static final String LINK = "资源链接@";
			public static final String FOLDER = "temp";
		}
	}

	public static class UserDefined {
		public static class OptionType {
			public static final int PIC = 7;
		}

		public static class ISTEAM {
			public static final int YES = 1;
			public static final int NO = 0;
		}
	}

	public static class Pay {
		public static class PayType {
			public static final String ZHIFUBAO = "1";
			public static final String WXPAY = "2";
		}
	}

	public static class Cmpt {
		public static class IsClose {
			public static final int Yes = 1;
			public static final int No = 0;
		}
	}

	public enum Delete {
		YES(1), NO(0), DEFAULT(0);
		private Integer value;

		Delete(Integer value) {
			this.value = value;
		}

		public Integer getValue() {
			return value;
		}
	}

	public static class SMSConent {
		public static class IsDelete {
			public static final int Yes = 1;
			public static final int No = 0;
		}

		public static class SmsType {
			public static final int SYSAUTO = 1;// 系统自动
			public static final int SYSTIME = 2;// 系统定时
			public static final int MANUAL = 3;// 手动
			public static final int ENROLLSUCESS = 4;
		}

		public static class SendUserType {
			public static final int NOTPAY = 2;// 未支付
			public static final int ISPAY = 1;// 已支付
			public static final int ALL = -1;// 全部人员???
		}
	}

	public static class RegisterBalanceConsumeRecord {
		public static class PayType {
			public static final int SMS = 2;
		}
	}

}
